import axios from 'axios'

const service = axios.create({
  baseURL: 'https://api-hmzs.itheima.net/api',
  timeout: 5000
})

service.interceptors.request.use(function(request) { return request }, function(error) { return error })
service.interceptors.response.use(function(response) { return response.data }, function(error) { return error })

export default service
